<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<script type="text/javascript" src="<%=basePath %>js/jquery-1-3-2.js"></script>

<script src="<%=basePath %>js/jquery.paginate.js" type="text/javascript"></script>
<div class='span12' style='margin-left:0px;'>
<div class='span2 news1' style='height:140px;'>
  <div class="">
  <ul class='menu nav nav-tabs nav-stacked'>
    <c:forEach items="${xxydtypes }" var="types">
        <li id='type${types.xyydtypeId }'><a href='<%=basePath%>learning/index_${types.xyydtypeId }/1'>${types.xyydtypeName }</a></li>
    </c:forEach>
    
     
  </ul>
  </div>
  </div>
<div class='span10 panel' >
 <div class=" ">

      <!-- Main hero unit for a primary marketing message or call to action -->
      
       <div class="">
       <div class="panel-heading word tou"><strong>${xxydtype.xyydtypeName }</strong></div>
       <c:if test="${empty xxyds }">
          <p style='color:#990000;'>暂无信息。</p>
       
       </c:if>
		<c:if test="${not empty xxyds }">
		  
      <!-- Example row of columns -->
      <c:forEach begin="1" end="${fn:length(xxyds)}" step="3" varStatus="status">
                <div class="span12 color-word" style='margin-left:0px;'>
					<c:forEach items="${xxyds }" var="xxyd"
						begin="${(status.count-1)*3 }" end="${(status.count)*3-1 }" varStatus="status1">
						
						    <div class="span3 colorblock${status.count*status1.count } color-word" style='margin-left:30px;'>
							<div class='texthidden4 culture-title' title="${xxyd.xyydName }">${xxyd.xyydName }</div>
							<div style='height:100px;'><p>${xxyd.xyydtGk }</p></div>
							<p style='margin-left:55px;'>
								<a class="btn" href='<%=basePath%>learning/detail/${xxyd.xyydId}' title="查看详细">详细内容
									&raquo;</a>
							</p>
						</div>
						
					</c:forEach>
				</div>
      </c:forEach>
      
      <div id="" class="span12" style='margin-top:50px;'>
		   <div id="demo1" class='container' style='margin-left:35%;'>                   
                </div>
                <script type="text/javascript">
	   $(function(){
		   var pagecount = ${pagecount };
		   var pagenow = ${pagenow};
		   var basePath = $("#basePath").val();
		   var type =${xxyds[0].xyydtId.xyydtypeId };
		   var burl = basePath + "learning/index_"+type + "/";
		   getPage(pagecount,pagenow,10,burl);
	   });
	</script>
	   
	</div>
		</c:if>
    </div> <!-- /container -->
</div>
</div>
</div>